package com.gbei.center.oauth.mapper;

import com.gbei.center.model.OpenResourceApp;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;
import tk.mybatis.mapper.common.Mapper;


/**
 * @Description: TODO
 */
@Component
public interface OpenResourceAppMapper extends Mapper<OpenResourceApp> {

	/**
	 * 根据资源id和应用ID查询记录
	 * @param openAppId
	 * @param resourceId
	 * @return
	 */
	@Select("select * from t_open_resource_app where `status` = 1 and open_app_id = #{openAppId} and resource_id = #{resourceId}")
	OpenResourceApp getOpenResourceApp(@Param("openAppId") String openAppId,@Param("resourceId") String resourceId);


	
}
